package com.example.demo1.repository;

import com.example.demo1.model.Drink;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DrinkRepository extends JpaRepository<Drink,Integer> {

    List<Drink> findDrinksByCategory_Id(Integer id);
    //List<Drink> findDrinksByName(String key);
}
